import React from 'react'
import { useNavigate, useSearchParams } from 'react-router-dom';
import { NavBar, Space, Toast } from 'antd-mobile'
import { Collapse } from 'antd-mobile'
function Index() {
    let nav=useNavigate()
    let [shu] = useSearchParams();
    let start = shu.get("start");
    let end = shu.get("end");
  return (
    <div>
          <NavBar onBack={()=>nav('/')}>
          <span>{start}</span>
        <span>→</span>
        <span>{end}</span>
          </NavBar>
       
     <div className="ok">
        
      <p>虹桥</p>
      <p>北京大兴</p>
      <p>时间 21:15</p>
      <p>价格：500</p>
      </div><br />
    <div>
    <Collapse accordion>
          <Collapse.Panel key='1' title='经济舱'>
            价格 1888
          </Collapse.Panel>
          <Collapse.Panel key='2' title='商务仓'>
          价格 2888
          </Collapse.Panel>
          <Collapse.Panel key='3' title='头等舱'>
          价格 3888
          </Collapse.Panel>
        </Collapse>
      
    </div>
    </div>
  )
}

export default Index
